home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / activcre / activecr.txt < prev    next >
Encoding:
Text File  |  1998-03-23  |  2.7 KB  |  70 lines

  1. ActiveCredit OCX 1.0.0
  2.  
  3. The ActiveCredit is a freeware credit card number validation program.  It checks for the valid length, prefix, and check digit for the major credit cards such as Visa, MasterCard, American Express, Discover, Diner Club, JBC, and enRoute.  
  4.  
  5. The ActiveCredit can be used as a front line business transaction validation program to check the validity of credit cards before accept them for the main processing.  It is very easy to use and a user can choose it to be either visual or non-visual during the runtime. 
  6.  
  7. Usage)
  8.  
  9. If the ActiveCredit is used as a visual component in the application program, you don't have to do anything but drop it on the form.  The ActiveCredit will take care of the rest.  However, if the control is used as a non-visual component, you need code your application program as follows:
  10.  
  11. method:
  12.     isValidCard(Card Type, Card Number)
  13.     returns integer
  14. property:
  15.     errCode    
  16.     returns variant
  17.  
  18.     errMessage
  19.     return variant
  20.  
  21. i.e)
  22. public sub BtnValidate_Click()
  23. If creditCard1.isValidCard("Visa", "4123123412341234") = 0 Then
  24.                 'this card number is valid, so do whatever you need to do for further processing
  25.         Else
  26.                 'invalid credit card number           
  27.         if creditCard1.errCode = 1 then    
  28.             'card number length error
  29.         elseif creditCard1.errCode = 2 then
  30.             'card number prefix error
  31.         elseif creditCard1.errCode = 3 then
  32.             'card number check digit error
  33.         else 
  34.             'unknown error
  35.         endif
  36.  
  37.         debug.print creditCard1.errMessage
  38. End If
  39. end sub    
  40.  
  41.  
  42.  
  43. ============================================================================
  44. Please e-mail me if you have any questions, comments, or bug reports and check out my homepage for the complete documentation and sample programs..
  45. ============================================================================
  46. Author: Sung Yi
  47.  
  48. Check out my other programs.
  49.  
  50. ActiveResizer DLL/OCX 1.3.2 : A intelligent VB form resizer
  51. ActiveCommander OCX 2.5 : API utilities for VB programmer
  52. ActiveFun 1.0.1 : make a super break game
  53. ActiveCredit 1.0.0 : Credit card number validation
  54.  
  55. Java Screen Savers : You must see these
  56. Java Credit Card Number Validation : It's on line and running
  57. Visual Java FTP : Cool!!!
  58.  
  59. And much much more...
  60.  
  61. e-mail)
  62. Javax@networksplus.net
  63. kdor91@ink.org
  64.  
  65. Home page)
  66. www.networksplus.net/javax
  67.  
  68. ******************************************************************************
  69.  I, THE AUTHOR, MAKE NO WARRANTIES ABOUT THE SUITABILITY OF THE  SOFTWARE AND SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY  USER AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE  SOFTWARE OR THEIR DERIVATIVES.                    *******************************************************************************
  70.